package com.agstar.designpatten.structural.adapter;

public class PowerAdapter implements DC5V {
    private AC220V ac220V = new AC220V();

    @Override
    public int output5V() {
        int power = ac220V.output220V();
        int output = power / 44;
        System.out.printf("转换器将%dV转为%dV", power, output);
        return output;
    }
}
